#ifndef _MATH_UTIL_H_
#define _MATH_UTIL_H_

#define POSITIVE_INFINITY	1e20
#define NEGATIVE_INFINITY	-1e20

class MathUtil
{
public:
	MathUtil(void);
	~MathUtil(void);

	static int clamp(int x, int min, int max);
	static float clamp(float x, float min, float max);
	static double clamp(double x, double min, double max);
	static int min(int a, int b, int c);
	static float min(float a, float b, float c);
	static double min(double a, double b, double c);
	static int max(int a, int b, int c);
	static float max(float a, float b, float c);
	static double max(double a, double b, double c);

};

#endif


